using System;
using UnityEngine;

[Serializable]
public class TTCameraBehaviourObserveAction : TTCameraBehaviour
{
	public Vector3 cameraObservePosition;

	public Vector3 cameraObserveRotation;

	public override void Start(Camera cam, TTCameraController camController, TTCameraOptions cameraOptions)
	{
		base.Start(cam, cameraController, cameraOptions);
	}

	public override void Update()
	{
		camera.transform.position = Vector3.Lerp(camera.transform.position, cameraObservePosition, RealTime.deltaTime * moveSpeed);
		camera.transform.rotation = Quaternion.Lerp(camera.transform.rotation, Quaternion.Euler(cameraObserveRotation), RealTime.deltaTime * rotationSpeed);
	}
}
